/**
 * @author zhengjiachao
 * @since 2017-4-6
 */
ADF.domControl.Button = function(parent) {
    ADF.domControl.Button.superclass.constructor.call(this, parent);
};

COM.util.defineClass(ADF.domControl.Button, ADF.domControl.BaseControl, {
    getLabel: function(){
        return "Button";
    },
    setText: function(text) {
        this.domElement.innerHTML = text;
    },
    setBtnstyle:function(btnstyle){
        $(this.domElement).addClass(btnstyle);
    },

    _getDomElement: function(model) {
        var button = COM.util.HTMLUtil.createELement('<button type="button" class="btn" style="overflow:hidden;">'+model.getText()+'</button>');
        return button[0];
    }

});